<?php 
namespace Admin\Model;
use Think\Model;
class UserModel extends Model{
   //验证用户表的数据
	 function checklogin($name,$password){
     $data=$this->where("name='$name' and password='$password'")->find();
     if($data){
     	return $data;
     }else{
     	return null;
     }
	}
}